package com.arsn.myf.common.enums;

/**
 * 结果code
 * @author myf
 * @since 2022-08-04
 */
public enum ResultCode {

    FAILURE(400, "业务异常"),
    PARAM_VALID_ERROR(400, "参数校验失败");

    /**
     * 编码
     */
    final int code;

    /**
     * 消息
     */
    final String msg;

    ResultCode(final int code,final String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
